<%-- 
    Document   : adminProfile
    Created on : May 13, 2010, 4:09:27 PM
    Author     : longdm0708l
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%--
    This file is an entry point for JavaServer Faces application.
--%>
<f:view>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Admin Profile page</title>
    </head>
    <body>
        <h1><h:outputText value="Admin Profile" /></h1>
        <img src="images/Ducati_ST3_Motorbike.jpg" alt="images" height="269" width="619"/>
        <h:form>
            <h:panelGrid columns="2">
                <h:outputText value="Admin full name:" />
                <h:inputText value="#{AdminControl.currentAdminProfile.customerName}"/>

                <h:outputText value="Admin date of birth:" />
                <h:inputText value="#{AdminControl.currentAdminProfile.dob}"/>

                <h:outputText value="Admin E mail:" />
                <h:inputText value="#{AdminControl.currentAdminProfile.email}"/>

                <h:outputText value="Admin address:" />
                <h:inputText value="#{AdminControl.currentAdminProfile.address}"/>

                <h:outputText value="Admin city:" />
                <h:inputText value="#{AdminControl.currentAdminProfile.city}"/>

                <h:outputText value="Admin Cell:" />
                <h:inputText value="#{AdminControl.currentAdminProfile.cell}"/>

                <h:outputText value="Admin bank name:" />
                <h:inputText value="#{AdminControl.currentAdminProfile.bankName}"/>

                <h:outputText value="Admin bank account number:" />
                <h:inputText value="#{AdminControl.currentAdminProfile.bankAccNo}"/>

                <h:commandButton value="Edit" action="#{AdminControl.updateAdmin}"/>
                <h:commandButton value="Cancel" action="#{AdminControl.cancel}"/>
            </h:panelGrid>
        </h:form>
    </body>
</html>
</f:view>
